#include <stdio.h>

int main () {
	int x;float y;scanf("%d",&x);
	y=2.4*x-1/2;
	printf("%f\n",y);
	y=x%2/5-x;
	printf("%f\n",y);
	y=x>10&&x<100;
	printf("%f\n",y);
	y=x>=10||x<=1;
	printf("%f\n",y);
	y=(x-=x*10,x/=10);
	printf("%f\n",y);
	return 0;
} 
